import { defineStore } from "pinia";
import { ref } from "vue";

// 定义状态和操作方法
export const useSourcemapInfo = defineStore("sourcemapInfo", () => {
  const sourcemapInfo = ref({});

  const setSourcemapInfo = (info) => {
    sourcemapInfo.value = info;
  };

  const getSourcemapInfo = () => {
    return sourcemapInfo.value;
  };

  return {
    setSourcemapInfo,
    getSourcemapInfo,
  };
});
